package com.ocean.recommendationserver.realtimerecommend.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ocean.recommendationserver.realtimerecommend.entity.StreamingRecommendation;
import com.ocean.recommendationserver.realtimerecommend.mapper.StreamingRecommendationMapper;
import com.ocean.recommendationserver.realtimerecommend.service.IStreamingRecommendationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ocean
 * @since 2021-07-18
 */
@Service
public class StreamingRecommendationServiceImpl extends ServiceImpl<StreamingRecommendationMapper, StreamingRecommendation> implements IStreamingRecommendationService {

    @Override
    public List<StreamingRecommendation> getStreamingRecommendationForAUser(Integer uid) {
        return this.list(new QueryWrapper<StreamingRecommendation>().eq("uid", uid));
    }
}
